package my_demo;

public class test01 {
    public static void main(String[] args) {
        int d = 38;
        char a = (char)38;//存字符，找38的对应字符
        char b = 10;
        char c = '3';//直接将''中的字符内容存入

        System.out.println("---------a-----------");
        System.out.println(a);//&
        System.out.println(a + "3");//&3
        System.out.println(a + 3);//41
        System.out.println(a + '3');//41 + '3'的Unicode码 = 89
        System.out.print(b);//10，换行
        System.out.print("----------c---------");
        System.out.println(c);//输入3字符串
        System.out.println(c+"3");//33
        System.out.println(c + 3);//'3'的Unicode码 + 3 = 54
        System.out.println(c + '3');//'3'的Unicode码 + '3'的Unicode码 = 102

    }
}
